-- GENERATED SPELL FOR [Greenpaw] --


function spell0_1993(pUnit, Event) --@Rejuvenation,n/a--
pUnit:FullCastSpellOnTarget(774,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1993', 12000, 1)
end

function spell1_1993(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(2606,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1993', 0, 1)
end

function Sorts_1993(pUnit, Event)
local choix_sorts_1993 = math.random(0, 1)
if choix_sorts_1993 == 0 then
pUnit:RegisterEvent('spell0_1993', 1, 1)
end
if choix_sorts_1993 == 1 then
pUnit:RegisterEvent('spell1_1993', 1, 1)
end
end

function mob1993_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1993', math.random(1500, 3000), 1)
end

function mob1993_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1993_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1993_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1993, 1, 'mob1993_Action')
RegisterUnitEvent(1993, 2, 'mob1993_Leave')
RegisterUnitEvent(1993, 3, 'mob1993_Kill')
RegisterUnitEvent(1993, 4, 'mob1993_Die')
